package com.decelo.jpa.dao;

import com.decelo.jpa.entity.sys.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Set;

@Repository
public interface UserDao extends JpaRepository<User,Long> {
    @Query(value="select t from User t where t.name=?1")
    public User getUserByName(String name);

}
